package com.bm.server.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bm.common.dto.ScripDto;
import com.bm.common.vo.R;
import com.bm.server.entity.Scrip;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * YoungMan, may the force be with you.
 *
 * @Author: 吃个小布丁吧
 * @Date: 2022/07/21/17:00
 */
public interface ScripDao extends BaseMapper<Scrip> {
        @Select("select * from t_scrip ORDER BY  ctime desc limit 3")
        List<ScripDto> selectNewThree();
}
